<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>值的绑定</title>
  <script src="/js/vue.js"></script>
</head>
<body>
  <div id="app">
    <!-- 值的绑定 动态的绑定值 -->
    <label v-for="item in hobbies">
        <input type="checkbox" v-model="myHobbies" :value="item">{{item}}
    </label>

    <p>{{myHobbies}}</p>
  </div>
<br>
  <script>
    let app = new Vue({
      el:"#app",
      data:{ 
        hobbies:['篮球','足球','排球','唱','跳','rap','背带裤'],
        myHobbies:[]
      }
    })
  </script>
</body>
</html>